<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>AmpleHarvest: cAmpleHarvest_DB.php Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">AmpleHarvest
   &#160;<span id="projectnumber">0.0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('c_ample_harvest___d_b_8php.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">cAmpleHarvest_DB.php</div>  </div>
</div>
<div class="contents">
<a href="c_ample_harvest___d_b_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00005"></a>00005         use\ampleharvest\code;
<a name="l00009"></a>00009         require_once(dirname(dirname(__FILE__))) . <span class="stringliteral">&#39;/config/cConfig.php&#39;</span>;
<a name="l00013"></a>00013         require_once code\cConfig::C_STR_DATABASE_LIB_PATH . <span class="stringliteral">&quot;/Classes/cDatabase.php&quot;</span>;
<a name="l00017"></a>00017         require_once <span class="stringliteral">&quot;Tables/cTABLE_Data.php&quot;</span>;
<a name="l00018"></a>00018         <span class="comment">//require_once &quot;Tables/cTABLE_Data_Ref.php&quot;;</span>
<a name="l00019"></a>00019         require_once <span class="stringliteral">&quot;Tables/cTABLE_Saved_Queries.php&quot;</span>;
<a name="l00020"></a>00020         <span class="comment">//      require_once &quot;Tables/cTABLE_Last_Indexed.php&quot;;</span>
<a name="l00021"></a>00021         require_once <span class="stringliteral">&quot;Tables/cTABLE_Log.php&quot;</span>;
<a name="l00022"></a>00022         require_once <span class="stringliteral">&quot;Tables/cTABLE_Query_History.php&quot;</span>;
<a name="l00023"></a>00023         require_once <span class="stringliteral">&quot;Tables/cTABLE_Drop_Down.php&quot;</span>;
<a name="l00024"></a>00024         require_once <span class="stringliteral">&quot;Tables/cTABLE_Drop_Down_Options.php&quot;</span>;
<a name="l00025"></a>00025         require_once <span class="stringliteral">&quot;Tables/cTABLE_Harvest_Requests.php&quot;</span>;
<a name="l00026"></a>00026         require_once <span class="stringliteral">&quot;Tables/cTABLE_Metric.php&quot;</span>;
<a name="l00027"></a>00027         require_once <span class="stringliteral">&quot;Tables/cTABLE_SourceList.php&quot;</span>;
<a name="l00028"></a>00028         require_once <span class="stringliteral">&quot;Tables/cTABLE_GroupPermissions.php&quot;</span>;
<a name="l00029"></a>00029         require_once <span class="stringliteral">&quot;Tables/cTABLE_Secondary_Data.php&quot;</span>;
<a name="l00030"></a>00030         require_once <span class="stringliteral">&quot;Tables/cTABLE_UserGroups.php&quot;</span>;
<a name="l00031"></a>00031         require_once <span class="stringliteral">&quot;Tables/cTABLE_GroupOptions.php&quot;</span>;
<a name="l00045"></a><a class="code" href="classc_ample_harvest___d_b.html">00045</a>         <span class="keyword">class </span><a class="code" href="classc_ample_harvest___d_b.html" title="Includes Path Info Class.">cAmpleHarvest_DB</a> <span class="keyword">extends</span> cDatabase
<a name="l00046"></a>00046         {
<a name="l00050"></a><a class="code" href="classc_ample_harvest___d_b.html#a7a06cd8ff700f0f696430dd93fb111b3">00050</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#a7a06cd8ff700f0f696430dd93fb111b3" title="Index to the Actions Table.">$m_int_TABLE_Data</a>;
<a name="l00051"></a>00051                 <span class="comment">//public $m_int_TABLE_Data_Ref;</span>
<a name="l00052"></a><a class="code" href="classc_ample_harvest___d_b.html#aad135c0dd025a75aefdbe4fb7d2811bf">00052</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#aad135c0dd025a75aefdbe4fb7d2811bf">$m_int_TABLE_Drop_Down</a>;
<a name="l00053"></a><a class="code" href="classc_ample_harvest___d_b.html#a5964172e0aad33605af2453d2e590d80">00053</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#a5964172e0aad33605af2453d2e590d80">$m_int_TABLE_Drop_Down_Options</a>;
<a name="l00054"></a><a class="code" href="classc_ample_harvest___d_b.html#a0a13964d5bb152e379c185878975d25e">00054</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#a0a13964d5bb152e379c185878975d25e">$m_int_TABLE_Saved_Queries</a>;
<a name="l00055"></a>00055                 <span class="comment">//public $m_int_TABLE_Last_Indexed;</span>
<a name="l00056"></a><a class="code" href="classc_ample_harvest___d_b.html#a07854e31df7384b2257e4f82e782516d">00056</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#a07854e31df7384b2257e4f82e782516d">$m_int_TABLE_Log</a>;
<a name="l00057"></a><a class="code" href="classc_ample_harvest___d_b.html#aedf1994b765fcb2084ec5ff9a2df8105">00057</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#aedf1994b765fcb2084ec5ff9a2df8105">$m_int_TABLE_Query_History</a>;
<a name="l00058"></a><a class="code" href="classc_ample_harvest___d_b.html#a0cf974a092a67abc5be59524931fde4d">00058</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#a0cf974a092a67abc5be59524931fde4d">$m_int_TABLE_Harvest_Requests</a>;
<a name="l00059"></a><a class="code" href="classc_ample_harvest___d_b.html#a591b1264ce611ccc1b80ec40becc1ca5">00059</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#a591b1264ce611ccc1b80ec40becc1ca5">$m_int_TABLE_Metric</a>;
<a name="l00060"></a><a class="code" href="classc_ample_harvest___d_b.html#a3c47abfad9eb434ce7b10f723aa4f46d">00060</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#a3c47abfad9eb434ce7b10f723aa4f46d">$m_int_TABLE_SourceList</a>;
<a name="l00061"></a><a class="code" href="classc_ample_harvest___d_b.html#af310fc15f826376550f3f44d53b3cecd">00061</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#af310fc15f826376550f3f44d53b3cecd">$m_int_TABLE_GroupPermissions</a>;
<a name="l00062"></a><a class="code" href="classc_ample_harvest___d_b.html#ac38c6f06d05c5a155b60d1877ddc3c1b">00062</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#ac38c6f06d05c5a155b60d1877ddc3c1b">$m_int_TABLE_GroupOptions</a>;
<a name="l00063"></a><a class="code" href="classc_ample_harvest___d_b.html#ab2079ea644f40c893a4ff8c2b6e7831b">00063</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#ab2079ea644f40c893a4ff8c2b6e7831b">$m_int_TABLE_UserGroups</a>;
<a name="l00064"></a><a class="code" href="classc_ample_harvest___d_b.html#a32d8b0831ba750f27d12bc7c2afe9b28">00064</a>                 <span class="keyword">public</span> <a class="code" href="classc_ample_harvest___d_b.html#a32d8b0831ba750f27d12bc7c2afe9b28">$m_int_TABLE_Secondary_Data</a>;
<a name="l00065"></a>00065 
<a name="l00069"></a><a class="code" href="classc_ample_harvest___d_b.html#a095c5d389db211932136b53f25f39685">00069</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_ample_harvest___d_b.html#a095c5d389db211932136b53f25f39685" title="Describes default information about the Database.">__construct</a>()
<a name="l00070"></a>00070                 {
<a name="l00071"></a>00071                         $this-&gt;m_str_DBName = <span class="stringliteral">&quot;ampleharvest&quot;</span>;
<a name="l00072"></a>00072 
<a name="l00073"></a>00073                         <span class="comment">//Initialize Tables</span>
<a name="l00074"></a>00074 
<a name="l00075"></a>00075                         $obj_Table_Data = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___data.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_Data</a>();
<a name="l00076"></a>00076                         $this-&gt;m_int_TABLE_Data = $this-&gt;add_Table($obj_Table_Data);
<a name="l00077"></a>00077 
<a name="l00078"></a>00078                         <span class="comment">//$obj_Table_Data_Ref = new cTABLE_Data_Ref();</span>
<a name="l00079"></a>00079                         <span class="comment">//$this-&gt;m_int_TABLE_Data_Ref = $this-&gt;add_Table($obj_Table_Data_Ref);</span>
<a name="l00080"></a>00080 
<a name="l00081"></a>00081                         $obj_Table_Saved_Queries = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___saved___queries.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_Saved_Queries</a>();
<a name="l00082"></a>00082                         $this-&gt;m_int_TABLE_Saved_Queries = $this-&gt;add_Table($obj_Table_Saved_Queries);
<a name="l00083"></a>00083 
<a name="l00084"></a>00084                         <span class="comment">//                      $obj_Table_Last_Indexed = new cTABLE_Last_Indexed();</span>
<a name="l00085"></a>00085                         <span class="comment">//                      $this-&gt;m_int_TABLE_Last_Indexed = $this-&gt;add_Table($obj_Table_Last_Indexed);</span>
<a name="l00086"></a>00086 
<a name="l00087"></a>00087                         $obj_Table_Log = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___log.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_Log</a>();
<a name="l00088"></a>00088                         $this-&gt;m_int_TABLE_Log = $this-&gt;add_Table($obj_Table_Log);
<a name="l00089"></a>00089 
<a name="l00090"></a>00090                         $obj_Table_Query_History = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___query___history.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_Query_History</a>();
<a name="l00091"></a>00091                         $this-&gt;m_int_TABLE_Query_History = $this-&gt;add_Table($obj_Table_Query_History);
<a name="l00092"></a>00092 
<a name="l00093"></a>00093                         $obj_Table_Drop_Down_Options = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___drop___down___options.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_Drop_Down_Options</a>();
<a name="l00094"></a>00094                         $this-&gt;m_int_TABLE_Drop_Down_Options = $this-&gt;add_Table($obj_Table_Drop_Down_Options);
<a name="l00095"></a>00095 
<a name="l00096"></a>00096                         $obj_Table_Drop_Down = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___drop___down.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_Drop_Down</a>();
<a name="l00097"></a>00097                         $this-&gt;m_int_TABLE_Drop_Down = $this-&gt;add_Table($obj_Table_Drop_Down);
<a name="l00098"></a>00098 
<a name="l00099"></a>00099                         $obj_Table_Harvest_Requests = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___harvest___requests.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_Harvest_Requests</a>();
<a name="l00100"></a>00100                         $this-&gt;m_int_TABLE_Harvest_Requests = $this-&gt;add_Table($obj_Table_Harvest_Requests);
<a name="l00101"></a>00101 
<a name="l00102"></a>00102                         $obj_Table_Secondary_Data = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___secondary___data.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_Secondary_Data</a>();
<a name="l00103"></a>00103                         $this-&gt;m_int_TABLE_Secondary_Data = $this-&gt;add_Table($obj_Table_Secondary_Data);
<a name="l00104"></a>00104                 
<a name="l00105"></a>00105                         $obj_Table_Metric = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___metric.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_Metric</a>();
<a name="l00106"></a>00106                         $this-&gt;m_int_TABLE_Metric = $this-&gt;add_Table($obj_Table_Metric);
<a name="l00107"></a>00107 
<a name="l00108"></a>00108                         $obj_Table_SourceList = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___source_list.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_SourceList</a>();
<a name="l00109"></a>00109                         $this-&gt;m_int_TABLE_SourceList = $this-&gt;add_Table($obj_Table_SourceList);
<a name="l00110"></a>00110 
<a name="l00111"></a>00111                         $obj_Table_GroupPermissions = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___group_permissions.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_GroupPermissions</a>();
<a name="l00112"></a>00112                         $this-&gt;m_int_TABLE_GroupPermissions = $this-&gt;add_Table($obj_Table_GroupPermissions);
<a name="l00113"></a>00113 
<a name="l00114"></a>00114                         $obj_Table_UserGroups = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___user_groups.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_UserGroups</a>();
<a name="l00115"></a>00115                         $this-&gt;m_int_TABLE_UserGroups = $this-&gt;add_Table($obj_Table_UserGroups);
<a name="l00116"></a>00116 
<a name="l00117"></a>00117                         $obj_Table_GroupOptions = <span class="keyword">new</span> <a class="code" href="classc_t_a_b_l_e___group_options.html" title="Includes the base class for Tables (uses base path from the cinfo file.">cTABLE_GroupOptions</a>();
<a name="l00118"></a>00118                         $this-&gt;m_int_TABLE_GroupOptions = $this-&gt;add_Table($obj_Table_GroupOptions);
<a name="l00119"></a>00119 
<a name="l00120"></a>00120                         <span class="comment">//Set up connection</span>
<a name="l00121"></a>00121                         $this-&gt;m_obj_Connection = <span class="keyword">new</span> cConnection(<span class="stringliteral">&quot;AmpleHarvest&quot;</span>, <span class="stringliteral">&quot;admin&quot;</span>);
<a name="l00122"></a>00122                         <span class="comment">//Activate all Debug options</span>
<a name="l00123"></a>00123                         $this-&gt;m_obj_Connection-&gt;set_DebugLevel(cLog_Connection_Debug::c_int_LEVEL_BASIC);
<a name="l00124"></a>00124                         $this-&gt;m_obj_Connection-&gt;set_LogLevel(cLog_Connection::c_int_LEVEL_BASIC);
<a name="l00125"></a>00125                         $this-&gt;m_obj_Connection-&gt;activate_Logging();
<a name="l00126"></a>00126                         $this-&gt;m_obj_Connection-&gt;activate_LogDebug();
<a name="l00127"></a>00127                         <span class="comment">//$this-&gt;m_obj_Connection-&gt;activate_ScreenDebug();</span>
<a name="l00128"></a>00128                 }
<a name="l00129"></a>00129         }
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="c_ample_harvest___d_b_8php.html">cAmpleHarvest_DB.php</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Mon Jan 23 2012 13:34:19 for AmpleHarvest by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
